package com.lovo.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * ?û????ջ???ַ?
 * </p>
 *
 * @author lovo
 * @since 2022-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_address")
public class Address extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * ?ջ???ַ???
     */
    @TableId(value = "addressId", type = IdType.AUTO)
    private Integer addressid;

    /**
     * ?ջ??
     */
    private String receiver;

    /**
     * ???ڵ???
     */
    private String area;

    /**
     * ??ϸ??ַ
     */
    @TableField("fullAddress")
    private String fulladdress;

    /**
     * ?ջ??˵绰
     */
    private String phone;

    /**
     * ?Ƿ?Ĭ???ջ???ַ
            0--????Ĭ???ջ???ַ
            1--Ĭ???ջ???ַ
     */
    @TableField("defaultAddress")
    private String defaultaddress;

    /**
     * ???????û????
     */
    @TableField("userId")
    private Integer userid;


}
